|
|
|
|
|
|
|
Note When adding other menu groups, be careful not to confuse your users. If and when possible, place as many of your menu functions in one of the standard menu groups. |
|
|
|
|
|
|
|
|
|
After deciding what functions you want to include in the menu and how to group them, you can start building the menu. When creating a menu for your application, remember that every form in the application can have its own menu defined. To see how to create a menu, start with the project that you created previously for the toolbar example. (If you didn't save it, don't panicjust start a new project.) When creating a menu, you must display the form that you want to add the menu to. Only then can you start the Menu Editor by clicking the Menu Editor button on the Visual Basic toolbar (see Figure 4.17). |
|
|
|
|
|
|
|
|
Figure 4.17.
The Menu Editor helps you create a
professional-looking menu system for your
application. |
|
|
|
|
|
|
|
|
With the Menu Editor open, you can start adding the items that you want in the menu. For each item that you want on a menu, you must set only two propertiesCaption and Namebut can accept the defaults for all other properties. The Caption property is what users see on the menu when using your application. The Name property is what you use in your application code to access the menu item. |
|
|
|
|
|
|
|
|
After you enter a menu item, press Enter to accept the values for the item and placed it in the menu selection area at the bottom of the Menu Editor (see Figure 4.18). Pressing Enter also clears the input area, making it ready for the next menu item. |
|
|
|
|
|